<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>积分规则设置信息</title>
<%@ include file="/page/include.jsp"%>
<script language="javascript" type="text/javascript" src="<%=basePath%>/statics/plugins/datetimepicker/js/bootstrap-datetimepicker.js"></script>
<script language="javascript" type="text/javascript" src="<%=basePath%>/statics/plugins/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
<link rel="stylesheet" type="text/css" href="<%=basePath%>/statics/plugins/datetimepicker/css/bootstrap-datetimepicker.css" />
<script src="<%=basePath%>/statics/js/webform.js" type="text/javascript"></script>
<link href="<%=basePath%>/statics/css/webform.css?v=20180104" rel="stylesheet" />
</head>
<style type="text/css">
.error {
    color: red;
    padding-left: 10px;
}
</style>
<body class="nav-md" style="background-color: #f7f7f7">
    <div class="container body">
        <div class="main_container">
            <div class="framebody" style="min-height: 100%;" role="main">
                <blockquote class="ui-elem-quote">积分规则设置</blockquote>
                <div class="row">
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel" style="background-color:#f9edbe;">
                            <div class="x_content">
                                <div class="item form-group">
                                    <div class="col-md-12 col-sm-12 col-xs-12">
                                        <b>温馨提示：</b><br /> <font>1.积分清零规则中到期保留三个月积分，指在积分到期日期时，最多保留的积分为近三个月产生的积分和。</font><br />
                                        <font>&nbsp;&nbsp;如1月1号为积分到期日期，客户在10月、11月、12月共产生200积分，客户当前积分如果大于200积分，则只保留200积分，客户当前积分如果小于等于200积分，则全部保留。</font><br/>
                                        <font>2.积分使用说明：在手机端“我的账户”应用中积分菜单项 的使用说明中展示。</font>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_content">
                                <form class="form-horizontal form-label-left" novalidate id="pointRuleForm" method="post"
                                    action="${pageContext.request.contextPath}/pointRule/savePointRule">
                                    <div class="item form-group">
                                        <label class="control-label col-md-2 col-sm-2 col-xs-2" for="ruleType"><span class="required"><font
                                                color="red">*</font></span>清零类型： </label>
                                        <div class="col-md-9 col-sm-9 col-xs-9">
                                            <c:forEach items="${pointClearRuleTypeList }" var="rule">
                                                <label class="control-label" for="ruleType" style="margin-right: 100px;"> <input
                                                    name="ruleType" value="${rule.keyValue }" type="radio"
                                                    <c:if test="${pointRule.ruleType == rule.keyValue }"> checked="true" </c:if> class="form-control">
                                                    ${rule.keyIntro }
                                                </label>
                                            </c:forEach>
                                        </div>
                                    </div>
                                    <div class="ln_solid"></div>
                                    <div class="item form-group">
                                        <label class="control-label col-md-2 col-sm-2 col-xs-2" for=""><span class="required"><font
                                                color="red">*</font></span>积分到期日： 
                                        </label>
                                        <div class="col-md-3 col-sm-3 col-xs-3">
                                            <input id="expireDate" name="expireDate" data-format="mmdd" value="${pointRule.expireDate }"
                                                class="form-control col-md-3 col-xs-12 datetime" type="text">
                                        </div>
                                        <div class="col-md-6 col-sm-6 col-xs-6 padTop8">
                                            <font color='red'>格式：mmdd(XX月XX日，如 0506：5月6日)</font>
                                        </div>
                                    </div>
                                    <div class="ln_solid"></div>
                                    <div class="item form-group">
                                        <label class="control-label col-md-2 col-sm-2 col-xs-2" for="intro"><span class="required"><font
                                                color="red">*</font></span>积分使用说明： </label>
                                        <div class="col-md-3 col-sm-3 col-xs-3">
                                            <textarea id="intro" name="intro" maxlength="300" class="form-control col-md-10 col-xs-12">${pointRule.intro }</textarea>
                                        </div>
                                    </div>
                                </form>
                                <div class="ln_solid"></div>
                                <div class="form-btn-content txtLeft">
                                    <a id="btn_save" class="btn btn-primary">保存</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript" src="${rootPath}/js/point/pointRule_form.js"></script>
</html>